﻿/// <reference path="jquery-1.7.2-vsdoc.js" />
/// <reference path="jquery-ui-1.8.20.js" />
/// <reference path="jquery.validate-vsdoc.js" />


$(function () {
    $("#InCollaborationWithDropDown").change(function () {
        if ($("#InCollaborationWithDropDown").val() != '') {
            $("#CollaboratorDetails").show("fast");
            $("#CollaboratorOrganization").addClass("required");
            $("#CollaboratorContactName").addClass("required");
            $("#CollaboratorContactEmail").addClass("required");
            $("#CollaboratorContactPhone").addClass("required");
        }
        else $("#CollaboratorDetails").hide("fast");
    });

    $("#InCollaborationWithDropDown").trigger("change");

});